package com.fowo.api.model.supplier.flow.form.relation.log;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 供应商流程表单实例日志 导入导出辅助模型 */
@Getter
@Setter
public class SupplierFlowFormRelationLogExcelPo {

  @ExcelProperty(value = "所属供应商流程表单实例")
  private Long parentSupplierFlowFormRelationFormId;

  @ExcelIgnore
  @ExcelProperty(value = "所属供应商流程表单实例")
  private Long parentSupplierFlowFormRelation;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "流程节点")
  private String flowNodeIdEnCode;

  @ExcelIgnore
  @ExcelProperty(value = "流程节点")
  private Long flowNodeId;

  @Size(max = 50, message = "表单状态长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "表单状态")
  private String formStatus;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "执行人")
  private String doUserName;

  @ExcelIgnore
  @ExcelProperty(value = "执行人")
  private Long doUser;
}
